package com.example.feigntest.feignclient.config;

import feign.codec.Decoder;

import com.example.feigntest.customconfig.decoder.CustomFeignDecoder;

import org.springframework.context.annotation.Bean;

/**
 * 描述：此类不要交给 Spring 容器, 否则系统内所有 Feign 调用都会用到该配置
 *
 * @author YangQun by 2020/10/17
 */
public class DecoderConfig {

    @Bean
    public Decoder customDecoder(){
        return new CustomFeignDecoder();
    }

}
